/**
 * 
 */
package design_pattern.strategy;

/**
 * @author linzq
 * 
 */
public class PercentDiscountStrategy extends DiscountStrategy {

  private double percent = 0.95;

  /**
   * @param price
   * @param copies
   */
  public PercentDiscountStrategy(double price, int copies) {
    super(price, copies);
  }

  @Override
  public double calculateDiscount() {
    return price * copies * percent;
  }

  public double getPercent() {
    return percent;
  }

  public void setPercent(double percent) {
    this.percent = percent;
  }

}
